package com.jingdianjichi.auth.domain.convert;



import com.jingdianjichi.auth.domain.entity.AuthUserBO;
import com.jingdianjichi.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户Bo转换器
 */
@Mapper
public interface AuthUserBOConverter {
    AuthUserBOConverter INSTANCE =Mappers.getMapper(AuthUserBOConverter.class);

    //BO转entity
    AuthUser convertBoToEntity(AuthUserBO authUserBO);


    //Entity转Bo
    AuthUserBO convertEntityToBo(AuthUser authUser);

    List<AuthUserBO> convertEntityToBO(List<AuthUser> authUserList);





}
